how to check if item exists in list